package com.book.service;

import com.book.bean.Book;
import com.book.dao.BookDao;

import java.util.List;

public class BookService {
    private BookDao bd= new BookDao();
    public List<Book> selectAll(){
        return bd.selectAll();
    }
    public int addBook(Book book){
        return bd.addBook(book);
    }
    public Book findById(int bid){
        return bd.findById(bid);
    }
    public int updateBook(Book book){
        return  bd.updateBook(book);
    }
    public int deleteBook(int bid){
        return bd.deleteBook(bid);
    }
}
